#pragma once

#pragma warning(disable:4996)

#include <Windows.h>
#include <tchar.h>


struct OBJECTGUID 
{
	ULONG lDword;
	ULONG hDword;
};
struct MOVEPAR 
{
	DWORD unknow1;
	DWORD unknow2;
	float		x;
	float		y;
	float		z;
	DWORD	flag;
};
struct  COORDINATE
{
	float x;
	float y;
	float z;
};

struct PLAYERINFO 
{
	COORDINATE playerCoord;
	float	angle;

};


//////////////////////////////////////////////////////////////////////////


#define player_move_call_offest 0x57ECF0
#define player_guid_call_offest 0x526930
#define player_base_call_offest 0x3FCB30
#define  player_base_this_offest 0xBE202C



ULONG GetGuidCall=0;
ULONG pGetBaseCall=0;
ULONG pGetBasethis =0;
ULONG pMovetoCall =0;

//////////////////////////////////////////////////////////////////////////
void InitAddress();

void __stdcall SetPlayerAngle(DWORD pBase, float angle);
COORDINATE __stdcall GetPlayerCoord(DWORD pBase);
DWORD __stdcall GetPlayerBase(OBJECTGUID objGUID);
OBJECTGUID GetPlayerGuid();
OBJECTGUID GetObjectGuid(char* szObjName);
void __stdcall MoveTo(MOVEPAR* varPoint);

void MsgOutW(const TCHAR* format,...);